package controllers

import (
	"github.com/astaxie/beego"
)

type ApiContronller struct {
	beego.Controller
}



type JSONS struct {
    //必须的大写开头
    Status string `json:"status"`
    Msg  string `json:"msg"`
    Data []string `json:"data"`//key重命名,最外面是反引号
}




func (c *ApiContronller) Index() {
	
	data := &JSONS{
				"100", 
				"获取成功",
				[]string{"1ffffffffffffffffffff8"}}

		c.Data["json"] = data
		c.ServeJSON()


}



